home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
misc
/
sci
/
ephem_src_4_28.lha
/
obliq.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-17
|
421b
|
22 lines
#include <stdio.h>
#include "astro.h"
/* given the modified Julian date, mjd, find the obliquity of the
* ecliptic, *eps, in radians.
*/
obliquity (mjd, eps)
double mjd;
double *eps;
{
static double lastmjd = -10000, lasteps;
if (mjd != lastmjd) {
double t;
t = mjd/36525.;
lasteps = degrad(2.345229444E1
- ((((-1.81E-3*t)+5.9E-3)*t+4.6845E1)*t)/3600.0);
lastmjd = mjd;
}
*eps = lasteps;
}